Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build: Use Sidekiq Explicit Configuration #45310

Merged

Conversation

JuanitoFatas
Copy link
Contributor

@JuanitoFatas JuanitoFatas commented Jun 9, 2022

Active Job tests for Sidekiq starts to fail since buildkite rails/rails/#87116 because Sidekiq 6.5.0 has API changes on how to configure Sidekiq. The new API does not accept hash anymore, so This Pull Request changes to how it is supposed to be configured (see here that a config is actually the Sidekiq module).

After sidekiq/sidekiq#5225 / sidekiq/sidekiq#5329 is implemented, use the new Sidekiq::Config API.

View Active Job Integration Test Failure

CleanShot 2022-06-09 at 23 31 16@2x

Summary

Fixes ActiveJob integration tests that failed to start Sidekiq worker due to Sidekiq API changes.

@rails-bot rails-bot bot added the activejob label Jun 9, 2022
@JuanitoFatas JuanitoFatas changed the title Fix build: Use Sidekiq Explicit Configuration [WIP] Fix build: Use Sidekiq Explicit Configuration Jun 9, 2022
Reference commit: sidekiq/sidekiq@67daa7a

While the docs[1] suggests to use Sidekiq::Config, but it is not
available yet. So uses Sidekiq instead to make activejob integration
tests work.

[1]https://github.com/mperham/sidekiq/blob/main/docs/global_to_local.md#explicit-configuration
@JuanitoFatas JuanitoFatas force-pushed the fix-active-job-tests-for-sidekiq-650 branch from 0340231 to 6e6e2b9 Compare June 9, 2022 15:19
@JuanitoFatas JuanitoFatas changed the title [WIP] Fix build: Use Sidekiq Explicit Configuration Fix build: Use Sidekiq Explicit Configuration Jun 9, 2022
@JuanitoFatas
Copy link
Contributor Author

JuanitoFatas commented Jun 9, 2022

The build is failing because ruby 3.1 uses Sidekiq 6.4.2 while ruby 2.7 and ruby 3.0 uses Sidekiq 6.5.0...

https://buildkite.com/rails/rails/builds/87124#0181490c-cb14-402a-b443-09af22aa6702

CleanShot 2022-06-10 at 00 40 58@2x

@eileencodes eileencodes merged commit 6a260d0 into rails:main Jun 10, 2022
eileencodes added a commit that referenced this pull request Jun 10, 2022
…sidekiq-650

Fix build: Use Sidekiq Explicit Configuration
@JuanitoFatas JuanitoFatas deleted the fix-active-job-tests-for-sidekiq-650 branch June 14, 2022 04:06
byroot pushed a commit that referenced this pull request Jul 6, 2022
…sidekiq-650

Fix build: Use Sidekiq Explicit Configuration
eileencodes added a commit that referenced this pull request Jul 12, 2022
…sidekiq-650

Fix build: Use Sidekiq Explicit Configuration
eileencodes added a commit that referenced this pull request Jul 12, 2022
…sidekiq-650

Fix build: Use Sidekiq Explicit Configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants